﻿using Newtonsoft.Json;
using Hawksoft;
using Hawksoft.Caching;
using Hawksoft.Testing;
using Hawksoft.Abstractions;
using System;
using System.IO;
using System.Reflection;

namespace Hawksoft.Test
{
    public class HawksoftTestBase : IDisposable
    {
        private MunqContext munqContext;

        public HawksoftTestBase()
        {
            munqContext = new MunqContext();
            var registrar = Dependency.Resolve<IDependencyRegistrar>();
            registrar.RegisterInstance<ILocalCache>(new HttpRuntimeCache());
        }

        public void Dispose()
        {
            if (munqContext != null)
                munqContext.Dispose();
        }
    }
}